package com.zb.zbtcommon.service.impl;

import com.zb.zbtcommon.dao.NewsTypeDao;
import com.zb.zbtcommon.entity.NewsType;
import com.zb.zbtcommon.service.NewsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class NewsTypeServiceImpl implements NewsTypeService {

    @Autowired
    private  NewsTypeDao newsTypeDao;

    @Override
    public List<NewsType> findNewsType() {


        return newsTypeDao.findNewsType();
    }

    @Override
    public List<NewsType> findNewsTypeZixun() {

        return newsTypeDao.findNewsTypeZixun();
    }

}
